Gemini CLI:コマンドライン引数
$ gemini --help
code:out.txt
Usage: gemini options command
Gemini CLI - Launch an interactive CLI, use -p/--prompt for non-interactive
mode
Commands:
gemini query.. Launch Gemini CLI default
gemini mcp Manage MCP servers
gemini extensions <command> Manage Gemini CLI extensions.
aliases: extension
Positionals:
query Positional prompt. Defaults to one-shot; use -i/--prompt-interactive
for interactive.
Options:
-d, --debug Run in debug mode?boolean default: false
-m, --model Model string
-p, --prompt Prompt. Appended to input on stdin (if any).
[deprecated: Use the positional prompt instead. This flag will be removed in
a future version.] string
-i, --prompt-interactive Execute the provided prompt and continue in
interactive mode string
-s, --sandbox Run in sandbox? boolean
-y, --yolo Automatically accept all actions (aka YOLO
mode, see
https://www.youtube.com/watch?v=xvFZjo5PgG0
for more details)?boolean default: false
--approval-mode Set the approval mode: default (prompt for
approval), auto_edit (auto-approve edit
tools), yolo (auto-approve all tools)